-- GENERATED SPELL FOR [Scarlet Wizard] --


function spell0_4300(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(8439,pUnit)
pUnit:RegisterEvent('Sorts_4300', 645, 1)
end

function spell1_4300(pUnit, Event) --@Fire Shield III,n/a--
pUnit:FullCastSpellOnTarget(2601,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4300', 31000, 1)
end

function Sorts_4300(pUnit, Event)
local choix_sorts_4300 = math.random(0, 1)
if choix_sorts_4300 == 0 then
pUnit:RegisterEvent('spell0_4300', 1, 1)
end
if choix_sorts_4300 == 1 then
pUnit:RegisterEvent('spell1_4300', 1, 1)
end
end

function mob4300_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4300', math.random(1500, 3000), 1)
end

function mob4300_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4300_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4300_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4300, 1, 'mob4300_Action')
RegisterUnitEvent(4300, 2, 'mob4300_Leave')
RegisterUnitEvent(4300, 3, 'mob4300_Kill')
RegisterUnitEvent(4300, 4, 'mob4300_Die')
